/*
 * $Id: Constants.java 42 2013-04-17 15:33:59Z gabakyan $
 * $Author: gabakyan $
 * $Revision: 42 $
 * $Date: 2013-04-17 15:33:59 +0000 (Wed, 17 Apr 2013) $
 *
 * Copyright (c) 2013 Supply Chain Intelligence (SCI), Inc.
 * http://www.scintelligence.com/, Email: info@scintelligence.com
 * All rights reserved.
 *
 * This file is part of Logistics Map.
 *
 * Logistics Map is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * Logistics Map is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Logistics Map.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.sci.logisticsmap.support;

/**
 * The interface {@code Constants} provides the constants.
 *
 * @author gabakyan@gmail.com (Last modified by $Author: gabakyan $)
 * @version $Revision: 42 $
 *
 */
public class Constants {
    /**
     * The file separator.
     */
    public static final String FILE_SEPARATOR;
    /**
     * The path separator.
     */
    public static final String PATH_SEPARATOR;
    /**
     * The line separator.
     */
    public static final String LINE_SEPARATOR;
    /**
     * The default page size.
     */
    public static final int DEFAULT_PAGE_SIZE = 10;
    /**
     * The default encoding.
     */
    public static final String DEFAULT_ENCODING = "UTF-8";

    /**
     * The default comma separator.
     */
    public static final char DEFAULT_COMMA_SEPARATOR = ',';

    /**
     * The filename date marker patter.
     */
    public static final String FILENAME_DATE_MARKER_PATTERN = "-yyyyMMddHHmmssSSS";

    /**
     * The {@code MD5} encryption algorithm.
     */
    public static final String ENCRYPTION_ALGORITHM_MD5 = "MD5";
    /**
     * The {@code SHA-256} encryption algorithm.
     */
    public static final String ENCRYPTION_ALGORITHM_SHA256 = "SHA-256";

    /**
     * The Lat & Lng default precision.
     */
    public static final int LAT_LNG_DEFAULT_PRECISION = 6;

    /**
     * The country codes.
     */
    public static final String[] COUNTRY_CODES = {
            //"--",
            "AP","EU","AD","AE","AF","AG","AI","AL","AM","CW",
            "AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB",
            "BD","BE","BF","BG","BH","BI","BJ","BM","BN","BO",
            "BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD",
            "CF","CG","CH","CI","CK","CL","CM","CN","CO","CR",
            "CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO",
            "DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ",
            "FK","FM","FO","FR","SX","GA","GB","GD","GE","GF",
            "GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT",
            "GU","GW","GY","HK","HM","HN","HR","HT","HU","ID",
            "IE","IL","IN","IO","IQ","IR","IS","IT","JM","JO",
            "JP","KE","KG","KH","KI","KM","KN","KP","KR","KW",
            "KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT",
            "LU","LV","LY","MA","MC","MD","MG","MH","MK","ML",
            "MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV",
            "MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI",
            "NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF",
            "PG","PH","PK","PL","PM","PN","PR","PS","PT","PW",
            "PY","QA","RE","RO","RU","RW","SA","SB","SC","SD",
            "SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO",
            "SR","ST","SV","SY","SZ","TC","TD","TF","TG","TH",
            "TJ","TK","TM","TN","TO","TL","TR","TT","TV","TW",
            "TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE",
            "VG","VI","VN","VU","WF","WS","YE","YT","RS","ZA",
            "ZM","ME","ZW","A1","A2","O1","AX","GG","IM","JE",
            "BL","MF","BQ"
    };
    /**
     * The country codes {@code unknown}.
     */
    public static final String COUNTRY_CODE_UNKNOWN = "--";

    /**
     * The static initialization block.
     */
    static {
        FILE_SEPARATOR = System.getProperty("file.separator");
        PATH_SEPARATOR = System.getProperty("path.separator");
        LINE_SEPARATOR = System.getProperty("line.separator");
    }
}
